@echo off
chcp 65001
setlocal ENABLEDELAYEDEXPANSION
cd /d %~dp0

set errorlevel=0
set path_home_mysql=%MYSQL_HOME%
set path_bin_mysql=%path_home_mysql%\bin\
set user_mysql=root
set password_mysql=123456

"%path_bin_mysql%mysql" -u%user_mysql% -p%password_mysql% < dropAndCreate_test.sql.sql
"%path_bin_mysql%mysqldump" bairui_international -u%user_mysql% -p%password_mysql% --default-character-set=utf8 --add-drop-table | "%path_bin_mysql%mysql" bairui_international_test -u%user_mysql% -p%password_mysql% --default-character-set=utf8

setlocal DISABLEDELAYEDEXPANSION
pause;
